Integrand size = 13, antiderivative size = 51 \[ \int \sqrt {\frac {a+b x}{x^2}} \, dx=2 \sqrt {\frac {a}{x^2}+\frac {b}{x}} x-2 \sqrt {a} \text {arctanh}\left (\frac {\sqrt {a}}{\sqrt {\frac {a}{x^2}+\frac {b}{x}} x}\right ) \]
[Out]
Time = 0.05 (sec) , antiderivative size = 51, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.385, Rules used = {2004, 2032, 2038, 634, 212} \[ \int \sqrt {\frac {a+b x}{x^2}} \, dx=2 x \sqrt {\frac {a}{x^2}+\frac {b}{x}}-2 \sqrt {a} \text {arctanh}\left (\frac {\sqrt {a}}{x \sqrt {\frac {a}{x^2}+\frac {b}{x}}}\right ) \]
[In]
[Out]
Rule 212
Rule 634
Rule 2004
Rule 2032
Rule 2038
Rubi steps \begin{align*} \text {integral}& = \int \sqrt {\frac {a}{x^2}+\frac {b}{x}} \, dx \\ & = 2 \sqrt {\frac {a}{x^2}+\frac {b}{x}} x+a \int \frac {1}{\sqrt {\frac {a}{x^2}+\frac {b}{x}} x^2} \, dx \\ & = 2 \sqrt {\frac {a}{x^2}+\frac {b}{x}} x-a \text {Subst}\left (\int \frac {1}{\sqrt {b x+a x^2}} \, dx,x,\frac {1}{x}\right ) \\ & = 2 \sqrt {\frac {a}{x^2}+\frac {b}{x}} x-(2 a) \text {Subst}\left (\int \frac {1}{1-a x^2} \, dx,x,\frac {1}{\sqrt {\frac {a}{x^2}+\frac {b}{x}} x}\right ) \\ & = 2 \sqrt {\frac {a}{x^2}+\frac {b}{x}} x-2 \sqrt {a} \tanh ^{-1}\left (\frac {\sqrt {a}}{\sqrt {\frac {a}{x^2}+\frac {b}{x}} x}\right ) \\ \end{align*}
Time = 0.03 (sec) , antiderivative size = 58, normalized size of antiderivative = 1.14 \[ \int \sqrt {\frac {a+b x}{x^2}} \, dx=\frac {2 x \sqrt {\frac {a+b x}{x^2}} \left (\sqrt {a+b x}-\sqrt {a} \text {arctanh}\left (\frac {\sqrt {a+b x}}{\sqrt {a}}\right )\right )}{\sqrt {a+b x}} \]
[In]
[Out]
Time = 0.10 (sec) , antiderivative size = 47, normalized size of antiderivative = 0.92
method | result | size |
default | \(\frac {2 \sqrt {\frac {b x +a}{x^{2}}}\, x \left (\sqrt {b x +a}-\sqrt {a}\, \operatorname {arctanh}\left (\frac {\sqrt {b x +a}}{\sqrt {a}}\right )\right )}{\sqrt {b x +a}}\) | \(47\) |
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 93, normalized size of antiderivative = 1.82 \[ \int \sqrt {\frac {a+b x}{x^2}} \, dx=\left [2 \, x \sqrt {\frac {b x + a}{x^{2}}} + \sqrt {a} \log \left (\frac {b x - 2 \, \sqrt {a} x \sqrt {\frac {b x + a}{x^{2}}} + 2 \, a}{x}\right ), 2 \, x \sqrt {\frac {b x + a}{x^{2}}} + 2 \, \sqrt {-a} \arctan \left (\frac {\sqrt {-a} x \sqrt {\frac {b x + a}{x^{2}}}}{a}\right )\right ] \]
[In]
[Out]
\[ \int \sqrt {\frac {a+b x}{x^2}} \, dx=\int \sqrt {\frac {a + b x}{x^{2}}}\, dx \]
[In]
[Out]
\[ \int \sqrt {\frac {a+b x}{x^2}} \, dx=\int { \sqrt {\frac {b x + a}{x^{2}}} \,d x } \]
[In]
[Out]
none
Time = 0.28 (sec) , antiderivative size = 67, normalized size of antiderivative = 1.31 \[ \int \sqrt {\frac {a+b x}{x^2}} \, dx=\frac {2 \, a \arctan \left (\frac {\sqrt {b x + a}}{\sqrt {-a}}\right ) \mathrm {sgn}\left (x\right )}{\sqrt {-a}} + 2 \, \sqrt {b x + a} \mathrm {sgn}\left (x\right ) - \frac {2 \, {\left (a \arctan \left (\frac {\sqrt {a}}{\sqrt {-a}}\right ) + \sqrt {-a} \sqrt {a}\right )} \mathrm {sgn}\left (x\right )}{\sqrt {-a}} \]
[In]
[Out]
Time = 9.15 (sec) , antiderivative size = 67, normalized size of antiderivative = 1.31 \[ \int \sqrt {\frac {a+b x}{x^2}} \, dx=2\,x\,\sqrt {\frac {a}{x^2}+\frac {b}{x}}+\frac {\sqrt {a}\,\sqrt {x}\,\mathrm {asin}\left (\frac {\sqrt {a}\,1{}\mathrm {i}}{\sqrt {b}\,\sqrt {x}}\right )\,\sqrt {\frac {a}{x^2}+\frac {b}{x}}\,2{}\mathrm {i}}{\sqrt {b}\,\sqrt {\frac {a}{b\,x}+1}} \]
[In]
[Out]